<!--09-JS中无函数重载.html-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS中无函数重载</title>
    <script type="text/javascript">
        var func = function () {
            console.log("func()...");
        }
        var func = function (a, b) {
            console.log("func(a, b)...");
        }

        // JS中函数不能重载， func(a, b) 覆盖了 func()
        fun();  // Uncaught ReferenceError: fun is not defined
    </script>
</head>
<body>

</body>
</html>